import request from '@/utils/request'

/***
 * 账户管理
 */

// 获取列表   渲染
export const getAccount= () => request({
    url: '/accountmanagement/list',
    method: 'GET'
  })

//   删除
export const delAccount= data => request({
    url: `/accountmanagement/delete/${data.id}`,
    method: 'DELETE',
    data:data
  })

//   停用
export const stopAccount= data => request({
    url: `/accountmanagement/update/${data.id}`,
    method: 'PATCH',
    data:data
  })

//   添加
export const addAccount= data => request({
    url: `/accountmanagement/add/${data.id}`,
    method: 'POST',
    data:data
  })

//   参数设置
export const setParam= () => request({
    url: '/parametersetting/list',
    method: 'GET'
  })
